package game.poker.holdem.card;

import game.poker.holdem.HoldEmUtils;

import java.util.ArrayList;
import java.util.List;

public class CommunityCards {
    private List<Card> flopCards;
    private Card turnCard;
    private Card riverCard;
    
    public CommunityCards() {
        super();
    }

    public List<Card> getFlopCards() {
        return flopCards;
    }
    
    public void setFlopCards(List<Card> flopCards) {
        this.flopCards = flopCards;
    }
    
    public Card getTurnCard() {
        return turnCard;
    }
    
    public void setTurnCard(Card turnCard) {
        this.turnCard = turnCard;
    }
    
    public Card getRiverCard() {
        return riverCard;
    }
    
    public void setRiverCard(Card riverCard) {
        this.riverCard = riverCard;
    }
    
    public List<Card> getAllCards() {
        List<Card> cards = new ArrayList<Card>(flopCards);
        cards.add(turnCard);
        cards.add(riverCard);
        return cards;
    }
    
    public String toStringUnicodeImages() {
        StringBuilder sb = new StringBuilder();
        for(Card fC : flopCards) {
            sb.append(HoldEmUtils.toStringUnicodeImage(fC));
        }
        sb.append(HoldEmUtils.toStringUnicodeImage(turnCard));
        sb.append(HoldEmUtils.toStringUnicodeImage(riverCard));
        return sb.toString();
    }
    
    
}
